import { defHttp } from "/@/utils/http/axios";
import { UserInfo } from "/#/store";
import { UserModel, UserQueryModel } from "/@/api/model/userModel";

enum Api {
  GetInfo = "/user/getInfo",
  TutorList = "/user/tutorList",
}

export const getUserInfo = (userId: number, userCode: number) =>
  defHttp.get<UserInfo>({ url: Api.GetInfo, params: { userId, userCode } });

export const getTutorList = (params: UserQueryModel) =>
  defHttp.get<UserModel>({ url: Api.TutorList, params });
